package com.ruoyi.common.utils.canopen;

// 响应对象
public class CanopenResponse {
    private final CanopenCommand command;
    private final boolean success;
    private final byte[] responseData;
    private final String errorMessage;

    public CanopenResponse(CanopenCommand command, boolean success, byte[] responseData, String errorMessage) {
        this.command = command;
        this.success = success;
        this.responseData = responseData;
        this.errorMessage = errorMessage;
    }

    public CanopenCommand getCommand() { return command; }
    public boolean isSuccess() { return success; }
    public byte[] getResponseData() { return responseData; }
    public String getErrorMessage() { return errorMessage; }
}
